package com.itheima;

/**
 * 2025/3/31 20:51
 */
public class StarTest {
    public static void main(String[] args) {
        //创建一个Star对象
        Star s1 = new Star();
        //给s1中的变量赋值
        s1.name = "赵丽颖";
        s1.age = 18;
        s1.height = 1.68;
        s1.weight = 50.5;

        Star s2 = new Star();
        s2.name = "杨幂";
        s2.age = 28;
        s2.height = 1.78;
        s2.weight = 55.5;

        //取值
        System.out.println(s1.name);
        System.out.println(s1.age);
        System.out.println(s1.height);
        System.out.println(s1.weight);

        System.out.println(s2.name);
        System.out.println(s2.age);
        System.out.println(s2.height);
        System.out.println(s2.weight);

    }
}
